package com.red.wood.parser;

import java.io.IOException;

import org.apache.commons.io.IOUtils;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class UserParser {
	public static void main(String[] args) throws IOException {
		
		String input = IOUtils.toString(C3Parse.class.getClassLoader().getResourceAsStream("user_parser.json"),"UTF-8");
		JSONArray jArray = JSONArray.fromObject(input);
		System.out.println(jArray);
		
		JSONObject jsonObject = jArray.getJSONObject(0);
		System.out.println(jsonObject.getString("bjdx").split("-")[0]);
	}
}
